if (true) {
	var myname: string = "helloworld";
}
console.log(myname);
console.log(`this is ${myname} please`);//首先是反引号 其次使用${变量}  var 定义的是全局变量

const dbstr: string = "192.168.1.10"; //定义一个常量
let datas: string[] = [`a`, `b`, `c`, `d`];
for (let i = 0; i < datas.length; i++) {
	console.log(datas[i]);
}
for (let i = 0; i < datas.length; i++) {  // Noncompliant
	console.log(datas[i]);
}